package edu.nf.ch04.mapper;

import edu.nf.ch04.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author wangl
 * @date 2025/4/23
 */
public interface UserMapper {

    /**
     * 根据id查询user
     * @param id
     * @return
     */
    User getUserById(int id);

    /**
     * 多个条件查询
     * @param name
     * @param age
     * @return
     */
    User getUser(@Param("name") String name,
                 @Param("age") int age);
}